[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Function            getlogical - get Yes/No

  Syntax              char getlogical(int output);

  Prototype in        keyboard.h

  Remarks             getlogical waits for a True/False key (TtFfYyNn) to
                      be pressed and then displays a message via putstr()
                      according to output:

                           output         Message displayed
                           ------         -----------------
                             0                 no message
                             1                 T or F or Y or N
                             2                 True or False or Yes or No

                      getlogical is case independent.

                      Video output is via Borland's console i/o.

  Return value        returns 'Y' or 'N'

  See also            getc_match(), getci_match(), getk(), getyn(),
                      inkey(), inkeyc()

  Example             #include <keyboard.h>

                      main()
                      {
                           printf("This is good? ");
                           getlogical(2);
                      }

See Also: getc_match() getci_match() getk() getyn() inkey() inkeyc()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson